package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2024-06-01
 * Time: 16:49
 */
public class Test5 {
    public static void main(String[] args) {
        String str1 = "hello";
        char[] ch = str1.toCharArray();
        for(char i : ch){
            System.out.print(i);
        }
        System.out.println();

        String str2 = new String(ch);
        System.out.println(str2);
    }
}
